<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="java.io.*,java.util.*,java.lang.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ include file="./public/AdminSes.jsp" %>   
<%
Enumeration<String> paraNames = request.getParameterNames(); 
String urlGet=null;
for(int i=0;paraNames.hasMoreElements();i++){
    String paraKey = paraNames.nextElement(); 
    String paraValue  = request.getParameter(paraKey); 
    if(i==0){
    	urlGet="?" + paraKey + "=" + paraValue;
    }else{
    	if(!paraKey.equals("pageIndex")){//这个是页码 所有页面必须全部统一一个参数 保证后面的选中正常
   			urlGet=urlGet+"&" + paraKey + "=" + paraValue;
   		}
    }

}
%>
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>人力资源管理系统</title>
<link rel="icon" href="favicon.ico" type="image/ico">
<meta name="keywords" content="人力资源管理系统">
<meta name="description" content="人力资源管理系统">
<meta name="author" content="yinqi">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/materialdesignicons.min.css" rel="stylesheet">
<link href="css/style.min.css" rel="stylesheet">
<!--对话框-->
<link rel="stylesheet" href="js/jconfirm/jquery-confirm.min.css">
<!--时间选择插件-->
<link rel="stylesheet" href="js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css">
<!--日期选择插件-->
<link rel="stylesheet" href="js/bootstrap-datepicker/bootstrap-datepicker3.min.css">
<link href="css/style.min.css" rel="stylesheet">
</head>
  
<body  data-logobg="color_4" data-headerbg="color_4" data-sidebarbg="color_8" data-theme="default">
<div class="lyear-layout-web">
  <div class="lyear-layout-container">
    <!--左侧导航-->
 	<%@ include file="./public/left.jsp" %>
    <!--End 左侧导航-->
    
    <!--头部信息-->
 	<%@ include file="./public/head.jsp" %>
    <!--End 头部信息-->
    
    <!--页面主要内容-->
        <main class="lyear-layout-content">
      
		<div class="container-fluid"> 
		<% 
		String url=request.getParameter("url");
		String servlet=request.getParameter("servlet");
		if(servlet==null){servlet="mainfra.jsp";}
		%>
		<jsp:include page='<%=servlet%>'></jsp:include>
      	</div>
      
    </main>
    <!--End 页面主要内容-->
  </div>
</div>

<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/perfect-scrollbar.min.js"></script>
<script type="text/javascript" src="js/main.min.js"></script>
<script type="text/javascript" src="js/alert.js"></script>
<script src="js/jconfirm/jquery-confirm.min.js"></script>
<!--时间选择插件-->
<script src="js/bootstrap-datetimepicker/moment.min.js"></script>
<script src="js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js"></script>
<script src="js/bootstrap-datetimepicker/locale/zh-cn.js"></script>
<!--日期选择插件-->
<script src="js/bootstrap-datepicker/bootstrap-datepicker.min.js"></script>
<script src="js/bootstrap-datepicker/locales/bootstrap-datepicker.zh-CN.min.js"></script>
<script>
document.querySelector('a[href="<%=urlGet%>"]').parentNode.className="active";
document.querySelector('a[href="<%=urlGet%>"]').parentNode.parentNode.parentNode.className="nav-item nav-item-has-subnav active open";
</script>
</body>
</html>